package ioperation;

import book.Book;
import book.BookList;

/**
 * Created with Intellij IDEA
 * Description
 * User:ASUS
 * Date:2024-08-04
 * Time:23:27
 */
public class ShowOperation implements IOPeration{
    public void work(BookList bookList){
        System.out.println("显示图书……");
        int currentSize=bookList.getUsedSize();
        for(int i=0;i<currentSize;i++){
            Book book=bookList.getBooks(i);
            System.out.println(book);
        }
    }
}
